package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.pojo.DataDictionary;
import java.util.List;
import com.bdqn.membersystem.mapper.DataDictionaryMapper;
import com.bdqn.membersystem.service.DataDictionaryService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class DataDictionaryServiceImpl implements DataDictionaryService{

    @Resource
    private DataDictionaryMapper dataDictionaryMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return dataDictionaryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(DataDictionary record) {
        return dataDictionaryMapper.insertSelective(record);
    }

    @Override
    public DataDictionary selectByPrimaryKey(Long id) {
        return dataDictionaryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DataDictionary record) {
        return dataDictionaryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<DataDictionary> list) {
        return dataDictionaryMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<DataDictionary> list) {
        return dataDictionaryMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(DataDictionary record) {
        return dataDictionaryMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(DataDictionary record) {
        return dataDictionaryMapper.insertOrUpdateSelective(record);
    }

}
